<template>
  <div class="common-layout">
    <el-container>
      <el-header>
        <h1 style="background-color: #0aa1ed;color: #fff">后台管理系统</h1>
      </el-header>
      <el-container>
        <el-aside width="200px">
          <!--          左边侧边栏-->
          <el-menu style="margin-left: 20px">
            <el-menu-item index="1">员工管理</el-menu-item>
            <el-menu-item index="2">轮播图管理</el-menu-item>
            <el-menu-item index="3">商品管理</el-menu-item>
          </el-menu>
        </el-aside>
        <el-main>
          <el-table :data="arr">
            <el-table-column label="编号" type="index" width="80" align="center"></el-table-column>
            <el-table-column label="姓名" prop="name" align="center"></el-table-column>
            <el-table-column label="年龄" prop="age" align="center"></el-table-column>
            <el-table-column label="性别" prop="gender" align="center"></el-table-column>
            <el-table-column label="电话" prop="phone" align="center"></el-table-column>
            <el-table-column label="住址" prop="addr" align="center"></el-table-column>
          </el-table>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>


<script setup>
import {ref} from "vue";

const arr = ref([
  {name: '张飞', age: 18, gender: '男', phone: '18811112222', addr: '北京市学院路圣熙8号'},
  {name: '张飞', age: 18, gender: '男', phone: '18811112222', addr: '北京市学院路圣熙8号'},
  {name: '张飞', age: 18, gender: '男', phone: '18811112222', addr: '北京市学院路圣熙8号'},
  {name: '张飞', age: 18, gender: '男', phone: '18811112222', addr: '北京市学院路圣熙8号'},
  {name: '张飞', age: 18, gender: '男', phone: '18811112222', addr: '北京市学院路圣熙8号'},
  {name: '张飞', age: 18, gender: '男', phone: '18811112222', addr: '北京市学院路圣熙8号'},
  {name: '张飞', age: 18, gender: '男', phone: '18811112222', addr: '北京市学院路圣熙8号'},
  {name: '张飞', age: 18, gender: '男', phone: '18811112222', addr: '北京市学院路圣熙8号'},
  {name: '张飞', age: 18, gender: '男', phone: '18811112222', addr: '北京市学院路圣熙8号'}
]);
</script>

<style scoped>

</style>